package com.aaa.mrcai.pojo.entity;

import com.aaa.mrcai.converter.DepartConverter;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @ Author: Lining
 * @ Date: 2021/12/2 20:23
 */

@Data
@Alias("dept")
public class Dept implements Serializable {

    @ExcelProperty(value="部门编号",index = 0)
    private  Integer id;

    @ExcelIgnore
    private Integer did;

    @ExcelIgnore
    private String type;

    @ExcelIgnore
    private String tname;

    @ExcelProperty(value="部门名称",index = 1)
    private  String dname;

    @ExcelProperty(value="部门描述",index = 2)
    private  String other;

    @ExcelProperty(value="成立日期",index = 3)
    private  String startdate;

    @ExcelIgnore
    private Integer sid;

    @ExcelIgnore
    private String state;

    @ExcelProperty(value="状态",index = 4,converter = DepartConverter.class)
    private State s;

    @ExcelIgnore
    private List<Dept> chirldren = new ArrayList<>();

}
